package com.itheima.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
//@Aspect
public class MyAspect1 {
    @Pointcut("execution(* com.itheima.service.*.*(..))")
    public void pt() {}


    @Before("pt()")
    public void before() {
        System.out.println("MyAspect1-before...");
    }

    @Before("pt()")
    public void before2() {
        System.out.println("MyAspect1-before...");
    }
}
